package com.example.springboot_jap_model.enums;

import com.example.springboot_jap_model.constant.Constant;

/**
 * 枚举 类型 定义
 */
public enum RespEntityEnum {
    UN_KNOWS(Constant.OPERATING_ERROR, "未知错误"),
    SUCCESS(Constant.OPERATING_SUCCESS, "操作成功"),
    TEST(100, "测试"),
    AUTO_FILTER(403, "权限不符合"),
    USER_NAME_NOT_UNIQUE(Constant.OPERATING_ERROR, "用户名不唯一"),
    PARAMETER_EXCEPTION(Constant.OPERATING_ERROR, "参数异常"),
    NOT_EXIST(Constant.OPERATING_ERROR, "用户不存在"),
    U_OR_P_ERROR(Constant.OPERATING_ERROR, "用户名密码错误"),
    PT_USER(Constant.PT_USER_TYPE,"普通用户"),
    GL_USER(Constant.GL_USER_TYPE,"管理员"),

    ;

    private Integer code;
    private String msg;

    RespEntityEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
